﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/C3.Master" AutoEventWireup="true"
    CodeBehind="ManageCheque.aspx.cs" Inherits="EasyCheque.Cheque.ManageCheque" %>

<asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder_Content" runat="server">
       <div class="title_inner">

    已开支票管理

    </div>
    <br />
    <asp:GridView ID="GridView_Cheques" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource_ManageCheque" 
        onrowcommand="GridView_Cheques_RowCommand" 
        OnRowDataBound="GridView_RowDataBound"
           EmptyDataText="当前没有未作废支票，或者您还未开过支票。" CellPadding="4" ForeColor="#333333" 
           GridLines="None">
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <Columns>
            <asp:BoundField DataField="CHEQUE_ID" HeaderText="支票号" InsertVisible="False" 
                SortExpression="CHEQUE_ID" />
            <asp:BoundField DataField="ACCOUNT_ID" HeaderText="开票账户" 
                SortExpression="ACCOUNT_ID" />
            <asp:BoundField DataField="CHEQUE_DATE" HeaderText="开票日期" 
                SortExpression="CHEQUE_DATE" DataFormatString="{0:d}" />
            <asp:BoundField DataField="MONEY" HeaderText="金额" 
                SortExpression="MONEY" />
            <asp:BoundField DataField="RECV_ACC" HeaderText="收票账户" 
                SortExpression="RECV_ACC" />
            <asp:CheckBoxField DataField="INSURANCE" HeaderText="是否保付" 
                SortExpression="INSURANCE" />
            <asp:BoundField DataField="DEADLINE" HeaderText="有效日期" 
                SortExpression="DEADLINE" DataFormatString="{0:d}" />
            <asp:BoundField DataField="STATE" HeaderText="支票状态" 
                SortExpression="STATE" />
            <asp:ButtonField Text="作废" CommandName="Command_DropCheque" />
            <asp:ButtonField Text="重设密码" CommandName="Command_ResetPasswordCheque" />
        </Columns>
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#999999" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource_ManageCheque" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString_EasyCheque %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString_EasyCheque.ProviderName %>" 
        SelectCommand="SELECT * FROM [CHEQUE_INFO]"></asp:SqlDataSource>
</asp:Content>
